aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/article/[slug].tsx
Commit message (Collapse)AuthorAgeFilesLines
...
* fix: handle getStaticPaths fallbackArmand Philippot2022-02-021-23/+29
| | | | | | | | I had errors with next build because of fallback. I need to return early if the path does not exists, if not Next complains about undefined variables. I don't think it was related but I also fix the paths format in getStaticPaths, I forgot the params object in some dynamic routes.
* chore: add a new settings to handle prism theme from toolbarArmand Philippot2022-02-011-0/+10
|
* chore: add a Prism plugin to set code blocks themeArmand Philippot2022-01-311-0/+1
|
* refactor(config): move config from config dir to utilsArmand Philippot2022-01-291-14/+14
|
* chore: replace lingui functions with react-intlArmand Philippot2022-01-291-2/+4
|
* chore(i18n): replace i18n provider and helpersArmand Philippot2022-01-291-6/+5
|
* fix: handle translation with linguiArmand Philippot2022-01-281-5/+4
| | | | | | | | The previous method was not working so I tried a different approach. Translation is loaded but I'm still getting warnings: * Plurals for locale undefined aren't loaded * Text content did not match I can't figure how to fix them...
* chore: add reading time in posts metaArmand Philippot2022-01-251-0/+3
|
* refactor: rename all subject occurrences into topicArmand Philippot2022-01-231-2/+2
| | | | | I change the name in graphql endpoint, so I decided to repercute this change here.
* chore: add opengraph and twitter metaArmand Philippot2022-01-191-5/+12
|
* refactor(config): move defaultLocale as property of config.localesArmand Philippot2022-01-191-2/+2
| | | | | I will need the country code, so I think it makes more sense to gather them inside the same property.
* chore: add structured data using schema.org and JSON-LDArmand Philippot2022-01-191-2/+65
| | | | I also added the featured image on single article.
* chore(meta): add a link to comments on single post pagesArmand Philippot2022-01-161-1/+1
|
* chore(comments): handle comment replyArmand Philippot2022-01-151-1/+2
|
* chore: update sidebar and widgets stylesArmand Philippot2022-01-151-5/+4
| | | | | | | | | I'm now using a widget that can be expanded/collapsed. It also allows me to handle more effectively widgets overflow and to avoid styles repetitions. However, with stylelint rule "no-descending-specificity", I'm not sure if the stylesheets are really logical... Maybe I should deactivate this rule.
* refactor(sidebar): use a component to avoid styles repetitionArmand Philippot2022-01-111-2/+3
| | | | | | I also fix some overflow/sticky issues. I have to set overflow auto only when there is no button-like links otherwise, with translate, the button is cropped on hover.
* refactor(aside): move width from aside to sharing widgetArmand Philippot2022-01-101-2/+1
| | | | Only the Sharing widget needs the "min-content" width.
* chore: improve comment sectionArmand Philippot2022-01-071-2/+0
| | | | I also adjust styles for all forms and primary buttons.
* chore: move Main grid to its childrenArmand Philippot2022-01-061-5/+9
| | | | This way I can use full width background for some blocks.
* refactor: reuse PostMeta components on single articles/pagesArmand Philippot2022-01-061-10/+15
|
* refactor: move Prism hook from layout to article pageArmand Philippot2022-01-041-0/+17
| | | | | I will not use Prism elsewhere, so it makes more sense to call Prism only inside articles.
* chore: add a sharing componentArmand Philippot2021-12-211-0/+2
|
* chore: add a table of contentsArmand Philippot2021-12-211-0/+2
|
* chore: add a breadcrumb componentArmand Philippot2021-12-211-5/+4
|
* refactor: rewrite types and servicesArmand Philippot2021-12-201-5/+4
| | | | | | | I was repeating myself a lot in services. So I rewrited the different functions to improve readability and I extracted some formatting functions to put them in utils. I also rewrited/reorganized some types to keep consistent names.
* chore: create mutation to add a new comment on postsArmand Philippot2021-12-171-1/+1
|
* chore: add title and meta desc to postsArmand Philippot2021-12-171-19/+35
|
* chore: add a comment form to postsArmand Philippot2021-12-171-0/+3
|
* chore: add meta to single postsArmand Philippot2021-12-171-6/+15
|
* chore: display comments list on postsArmand Philippot2021-12-171-0/+6
|
* chore: create single post viewArmand Philippot2021-12-151-0/+58